$Value
= AtomicGet(<DeviceId>, "<$Variable>")
To
access variables across devices.
Parameters
<DeviceId>
The
device to access the variable value.
<$Variable>
The
name of the variable.
Return Value
Returns
the variable value.
Remarks
- This is an atomic function using which we can specify as well as access the variables of another thread.
Example
$Value = AtomicGet(1,"$Ring")
Here, the function obtains the value of the
variable $Ring from the first device.
$Value = AtomicGet(2,"$Ring")
Here, the function obtains the value of the
variable $Ring of the second device.